//
//  Macro_Method.h
//  MexicoLoan
//
//  Created by WXP on 2025/2/24.
//

#ifndef Macro_Method_h
#define Macro_Method_h



#define Ratio(n)       ((n)*[UIScreen mainScreen].bounds.size.width / 375.0f)
#define isStr(T)       ((T) && [(T) isKindOfClass:[NSString class]] && (T).length >0)
#define readStr(T)     (((T)&&([(T) isKindOfClass:NSString.class]||[(T) isKindOfClass:NSNumber.class]))?(T):@"")
#define isAry(T)       ((T) && [(T) isKindOfClass:[NSArray class]] && (T).count > 0)
#define isNum(T)       ((T) && [(T) isKindOfClass:[NSNumber class]])
#define isStrDeleteSpaces(T) ((T) && [(T) isKindOfClass:[NSString class]] && (T).length >0 && [T stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceCharacterSet]].length>0)
#define strDotF(T)  [NSString stringWithFormat:@"%.f",(T)]
#define strF(T)     [NSString stringWithFormat:@"%lf",(T)]
#define strDot2F(T) [NSString stringWithFormat:@"%.2f",(T)]


#endif /* Macro_Method_h */
